<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        /* 图片区域 */
        
        .preview_img {
            position: absolute;
            width: 398px;
            height: 398px;
            border: 1px solid #ccc;
        }
        
        .mask {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 200px;
            height: 200px;
            background-color: burlywood;
            opacity: 0.5;
            cursor: move;
        }
        
        .big {
            display: none;
            position: absolute;
            top: 0;
            left: 500px;
            border: 1px solid #ccc;
            width: 400px;
            height: 400px;
            overflow: hidden;
        }
        
        .bigIMg {
            position: absolute;
        }
    </style>
</head>

<body>
    <!-- 图片预览区域 -->
    <div class="preview_img">
        <!-- 图片 -->
        <img src="images/phone.png" alt="">
        <!-- 放大镜 -->
        <div class="mask"></div>
        <!-- 展示放大后图片效果 -->
        <div class="big">
            <img src="images/bigphone.png" alt="" class="bigIMg">
        </div>
    </div>
    <script src="js/big.js"></script>
</body>

</html>